<?php
#    pehachatpe-client - The client for the pehachatpe chat project.
#    Copyright (C) 2015 Jannik Haberbosch
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

// Default ip-address of the server.
define( "PEHACHATPE_DEFAULT_IP_ADDRESS", "127.0.0.1" );
define( "PEHACHATPE_DEFAULT_PORT", "10000" );
define( "PEHACHATPE_DEFAULT_USERNAME", "Default" );

// Filepath of the configuration file.
define(
	"PEHACHATPE_CONFIG_FILE",
	implode(
		DIRECTORY_SEPARATOR,
		array(
			"..",
			"config",
			"config.txt"
		)
	)
);

// Define the default contents of the configuration file.
define(
	"PEHACHATPE_CONFIG_FILE_DEFAULT_CONTENT",
	json_encode(
		array(
			"ip_address" => PEHACHATPE_DEFAULT_IP_ADDRESS,
			"port" => PEHACHATPE_DEFAULT_PORT,
			"nickname" => PEHACHATPE_DEFAULT_USERNAME
		)
	)
);

// wxWidgets ID's:
define( "PEHACHATPE_WIDGET_MESSAGES", 1 );
define( "PEHACHATPE_WIDGET_MESSAGE", 2 );
define( "PEHACHATPE_WIDGET_USERS", 3 );
define( "PEHACHATPE_WIDGET_MENU_FILE_CONNECT", 4 );
define( "PEHACHATPE_WIDGET_MENU_FILE_DISCONNECT", 5 );
define( "PEHACHATPE_WIDGET_MENU_EXTRAS_SERVER_ADDRESS", 6 );
define( "PEHACHATPE_WIDGET_MENU_EXTRAS_SERVER_PORT", 7 );
define( "PEHACHATPE_WIDGET_MENU_EXTRAS_NICKNAME", 8 );
define( "PEHACHATPE_WIDGET_MENU_HELP_HELP", 9 );
define( "PEHACHATPE_WIDGET_MENU_HELP_ABOUT", 10 );
	
?>
